package com.wlz.behavioral.template.v1;

public class Internal extends GoToDoctor{

    @Override
    public void register() {
        System.out.println("挂了内科号");
    }

    @Override
    public void check() {
        System.out.println("做个胃镜");
    }

    @Override
    public void quit() {
        System.out.println("退出内科");
    }

    public void run(){
        System.out.println("我生病了");
        this.register();
        this.check();
        this.quit();
        System.out.println("治好了");
    }


}
